/**
 * 用户与组的关系表
 */
var mongoose = require('mongoose');
var BaseSchema = require('./base_schema');

var userGroupRelaSchema = new BaseSchema({
    userId: {type: String},                    // 用户ID
    groupId: {type: mongoose.Schema.ObjectId}, // 分组ID(null: 默认分组)
    accountId: {type: String},                 // 分组所属账户ID
    remark: {type: String},                    // 用户名称备注
    condition: {type: String},                 // 用户病情备注
    isMonthlyPayment: {type: Boolean}          // 用户是否包月
});
module.exports = mongoose.model('user_group_rela', userGroupRelaSchema);
